package com.borya.dao;

import com.borya.model.db.JobNumberAudit;
import com.borya.model.db.Merchant;
import com.borya.model.db.User;
import com.borya.model.entity.*;

import java.util.List;

public interface SdkAppJobNumberDao extends BaseDAO {
    List<UserDataModel> getJobNumberUserList(String merchantId);

    List<JobNumberAuditModel> getJobNumberAuditList(String merchantId, int type);

    JobNumberCountInfo getJobNumberCountInfo(String appId);

    List<ManageLogModel> getManageLogList(String dealerId);

    /**
     * 检查号码是否存在于本app
     **/
    User getJobnumberUserByPhone(String phone, int detailType);
    /**
     * 添加子工号，查看手机号是否在途
     **/
    List<JobNumberAuditModel> checkZaiTu(String phone,int detailType);

    User getUserByIdCardIsMain(String idCard, int detailType, int i);

    JobNumberAudit getJobNumAuditByIdCard(String idCard, int detailType);

    boolean addJobNumberAudit(User user, JobNumberAudit audit);

    UserDetailModel getUserDetailList(String userId);

    SonJobNumProtocolModel getSonJobNumProtocol(String userId);

    Merchant getMerchantById(String merchantId);
}
